/*
 * @Author: your name
 * @Date: 2021-12-08 10:38:30
 * @LastEditTime: 2021-12-08 10:44:53
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /vite_vue3_ts/src/enums/httpEnum.ts
 */

/*
 *@Description: 请求结果集
 *@Author: huoran
 *@Date: 2021-12-08 10:39:32
 */
export enum ResultEnum {
  SUCCESS = 200,
  ERROR = -1,
  TIMEOUT = 10042,
  TYPE = "success",
}

/*
 *@Description: 请求方法
 *@Author: huoran
 *@Date: 2021-12-08 10:40:35
 */
export enum RequestEnum {
  GET = "GET",
  POST = "POST",
  PATCH = "PATCH",
  PUT = "PUT",
  DELETE = "DELETE",
}

/*
 *@Description: 常用的contentType类型
 *@Author: huoran
 *@Date: 2021-12-08 10:41:00
 */
export enum ContentTypeEnum {
  // json
  JSON = "application/json;charset=UTF-8",
  // josn
  TEXT = "text/plain;charset=UTF-8",
  // form-data 一般配合qs
  FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
  // form-data 上传
  FORM_DATA = "multipart/form-data;charset=UTF-8",
}
